#include "travelling_type.hpp"
#include "file_list.hpp"


bool travelling_type_csv::exist(int _travelling_type_id)
{
	csv_struct csv_file(file_list::travelling_type_filename());
	
	while(_travelling_type_id && !csv_file.eof())
	{
		++csv_file;
		travelling_type_struct_csv row(csv_file.get_line());

		if(row.id() == _travelling_type_id)
			return true;
	}
	return false;

}
	